package mail.server;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class Auther extends Authenticator {
	String username=null;  
    String password=null;  

    public Auther(){  
    }  
    public Auther(String username, String password) {  
    this.username = username;  
    this.password = password;  
    }  

	@Override
	protected PasswordAuthentication getPasswordAuthentication() {
		PasswordAuthentication pa = new PasswordAuthentication(username, password);
	      return pa;
	}
	
}
